Add an internal API to stream content objects
authorColin Walters <walters@verbum.org>
Fri, 30 Jan 2015 02:23:05 +0000 (21:23 -0500)
committerColin Walters <walters@verbum.org>
Fri, 6 Feb 2015 00:15:27 +0000 (19:15 -0500)
commit247866a9bca3557fb4a22a772a034eb89682b6a3
treef44ffe0d9482feade96c18e001ac13d7c25e7841
parent65afe1110d657e09ac46affa01ccaac6f2dbbf97
Add an internal API to stream content objects

For future delta work where we do more interesting things than just
"tar of new objects", this lays the groundwork for doing streaming
writes into content objects.

It's also more efficient, as we avoid many intermediate allocations
and virtual calls.  Just a single `g_output_stream_write_all` for the
splice case.

Conflicts:
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo-static-delta-processing.c
src/libostree/ostree-repo-commit.c
src/libostree/ostree-repo-private.h